3.2.13 \(\int \frac {x^2}{(a+b x^3) (c+d x^3)} \, dx\)

Optimal. Leaf size=45 \[ \frac {\log \left (a+b x^3\right )}{3 (b c-a d)}-\frac {\log \left (c+d x^3\right )}{3 (b c-a d)} \]

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {444, 36, 31} \begin {gather*} \frac {\log \left (a+b x^3\right )}{3 (b c-a d)}-\frac {\log \left (c+d x^3\right )}{3 (b c-a d)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x^2/((a + b*x^3)*(c + d*x^3)),x]

[Out]

Log[a + b*x^3]/(3*(b*c - a*d)) - Log[c + d*x^3]/(3*(b*c - a*d))

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 36

Int[1/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Dist[b/(b*c - a*d), Int[1/(a + b*x), x], x] -
Dist[d/(b*c - a*d), Int[1/(c + d*x), x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0]

Rule 444

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_.), x_Symbol] :> Dist[1/n, Subst[Int
[(a + b*x)^p*(c + d*x)^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p, q}, x] && NeQ[b*c - a*d, 0] && EqQ[m
- n + 1, 0]

Rubi steps

\begin {align*} \int \frac {x^2}{\left (a+b x^3\right ) \left (c+d x^3\right )} \, dx &=\frac {1}{3} \operatorname {Subst}\left (\int \frac {1}{(a+b x) (c+d x)} \, dx,x,x^3\right )\\ &=\frac {b \operatorname {Subst}\left (\int \frac {1}{a+b x} \, dx,x,x^3\right )}{3 (b c-a d)}-\frac {d \operatorname {Subst}\left (\int \frac {1}{c+d x} \, dx,x,x^3\right )}{3 (b c-a d)}\\ &=\frac {\log \left (a+b x^3\right )}{3 (b c-a d)}-\frac {\log \left (c+d x^3\right )}{3 (b c-a d)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 31, normalized size = 0.69 \begin {gather*} \frac {\log \left (a+b x^3\right )-\log \left (c+d x^3\right )}{3 b c-3 a d} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x^2/((a + b*x^3)*(c + d*x^3)),x]

[Out]

(Log[a + b*x^3] - Log[c + d*x^3])/(3*b*c - 3*a*d)

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^2}{\left (a+b x^3\right ) \left (c+d x^3\right )} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[x^2/((a + b*x^3)*(c + d*x^3)),x]

[Out]

IntegrateAlgebraic[x^2/((a + b*x^3)*(c + d*x^3)), x]

________________________________________________________________________________________

fricas [A]  time = 0.84, size = 31, normalized size = 0.69 \begin {gather*} \frac {\log \left (b x^{3} + a\right ) - \log \left (d x^{3} + c\right )}{3 \, {\left (b c - a d\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2/(b*x^3+a)/(d*x^3+c),x, algorithm="fricas")

[Out]

1/3*(log(b*x^3 + a) - log(d*x^3 + c))/(b*c - a*d)

________________________________________________________________________________________

giac [A]  time = 0.18, size = 51, normalized size = 1.13 \begin {gather*} \frac {b \log \left ({\left | b x^{3} + a \right |}\right )}{3 \, {\left (b^{2} c - a b d\right )}} - \frac {d \log \left ({\left | d x^{3} + c \right |}\right )}{3 \, {\left (b c d - a d^{2}\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2/(b*x^3+a)/(d*x^3+c),x, algorithm="giac")

[Out]

1/3*b*log(abs(b*x^3 + a))/(b^2*c - a*b*d) - 1/3*d*log(abs(d*x^3 + c))/(b*c*d - a*d^2)

________________________________________________________________________________________

maple [A]  time = 0.05, size = 42, normalized size = 0.93 \begin {gather*} -\frac {\ln \left (b \,x^{3}+a \right )}{3 \left (a d -b c \right )}+\frac {\ln \left (d \,x^{3}+c \right )}{3 a d -3 b c} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2/(b*x^3+a)/(d*x^3+c),x)

[Out]

-1/3/(a*d-b*c)*ln(b*x^3+a)+1/3/(a*d-b*c)*ln(d*x^3+c)

________________________________________________________________________________________

maxima [A]  time = 0.48, size = 41, normalized size = 0.91 \begin {gather*} \frac {\log \left (b x^{3} + a\right )}{3 \, {\left (b c - a d\right )}} - \frac {\log \left (d x^{3} + c\right )}{3 \, {\left (b c - a d\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2/(b*x^3+a)/(d*x^3+c),x, algorithm="maxima")

[Out]

1/3*log(b*x^3 + a)/(b*c - a*d) - 1/3*log(d*x^3 + c)/(b*c - a*d)

________________________________________________________________________________________

mupad [B]  time = 0.26, size = 602, normalized size = 13.38 \begin {gather*} -\frac {\mathrm {atan}\left (\frac {\frac {\left (\frac {x^3\,\left (36\,c\,b^4\,d^3+36\,a\,b^3\,d^4\right )+\frac {x^3\,\left (54\,a^2\,b^3\,d^5+108\,a\,b^4\,c\,d^4+54\,b^5\,c^2\,d^3\right )+108\,a\,b^4\,c^2\,d^3+108\,a^2\,b^3\,c\,d^4}{3\,a\,d-3\,b\,c}+36\,a\,b^3\,c\,d^3}{3\,a\,d-3\,b\,c}+6\,b^3\,d^3\,x^3\right )\,1{}\mathrm {i}}{3\,a\,d-3\,b\,c}-\frac {\left (\frac {x^3\,\left (36\,c\,b^4\,d^3+36\,a\,b^3\,d^4\right )-\frac {x^3\,\left (54\,a^2\,b^3\,d^5+108\,a\,b^4\,c\,d^4+54\,b^5\,c^2\,d^3\right )+108\,a\,b^4\,c^2\,d^3+108\,a^2\,b^3\,c\,d^4}{3\,a\,d-3\,b\,c}+36\,a\,b^3\,c\,d^3}{3\,a\,d-3\,b\,c}-6\,b^3\,d^3\,x^3\right )\,1{}\mathrm {i}}{3\,a\,d-3\,b\,c}}{\frac {\frac {x^3\,\left (36\,c\,b^4\,d^3+36\,a\,b^3\,d^4\right )+\frac {x^3\,\left (54\,a^2\,b^3\,d^5+108\,a\,b^4\,c\,d^4+54\,b^5\,c^2\,d^3\right )+108\,a\,b^4\,c^2\,d^3+108\,a^2\,b^3\,c\,d^4}{3\,a\,d-3\,b\,c}+36\,a\,b^3\,c\,d^3}{3\,a\,d-3\,b\,c}+6\,b^3\,d^3\,x^3}{3\,a\,d-3\,b\,c}+\frac {\frac {x^3\,\left (36\,c\,b^4\,d^3+36\,a\,b^3\,d^4\right )-\frac {x^3\,\left (54\,a^2\,b^3\,d^5+108\,a\,b^4\,c\,d^4+54\,b^5\,c^2\,d^3\right )+108\,a\,b^4\,c^2\,d^3+108\,a^2\,b^3\,c\,d^4}{3\,a\,d-3\,b\,c}+36\,a\,b^3\,c\,d^3}{3\,a\,d-3\,b\,c}-6\,b^3\,d^3\,x^3}{3\,a\,d-3\,b\,c}}\right )\,2{}\mathrm {i}}{3\,a\,d-3\,b\,c} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2/((a + b*x^3)*(c + d*x^3)),x)

[Out]

-(atan(((((x^3*(36*a*b^3*d^4 + 36*b^4*c*d^3) + (x^3*(54*a^2*b^3*d^5 + 54*b^5*c^2*d^3 + 108*a*b^4*c*d^4) + 108*
a*b^4*c^2*d^3 + 108*a^2*b^3*c*d^4)/(3*a*d - 3*b*c) + 36*a*b^3*c*d^3)/(3*a*d - 3*b*c) + 6*b^3*d^3*x^3)*1i)/(3*a
*d - 3*b*c) - (((x^3*(36*a*b^3*d^4 + 36*b^4*c*d^3) - (x^3*(54*a^2*b^3*d^5 + 54*b^5*c^2*d^3 + 108*a*b^4*c*d^4)
+ 108*a*b^4*c^2*d^3 + 108*a^2*b^3*c*d^4)/(3*a*d - 3*b*c) + 36*a*b^3*c*d^3)/(3*a*d - 3*b*c) - 6*b^3*d^3*x^3)*1i
)/(3*a*d - 3*b*c))/(((x^3*(36*a*b^3*d^4 + 36*b^4*c*d^3) + (x^3*(54*a^2*b^3*d^5 + 54*b^5*c^2*d^3 + 108*a*b^4*c*
d^4) + 108*a*b^4*c^2*d^3 + 108*a^2*b^3*c*d^4)/(3*a*d - 3*b*c) + 36*a*b^3*c*d^3)/(3*a*d - 3*b*c) + 6*b^3*d^3*x^
3)/(3*a*d - 3*b*c) + ((x^3*(36*a*b^3*d^4 + 36*b^4*c*d^3) - (x^3*(54*a^2*b^3*d^5 + 54*b^5*c^2*d^3 + 108*a*b^4*c
*d^4) + 108*a*b^4*c^2*d^3 + 108*a^2*b^3*c*d^4)/(3*a*d - 3*b*c) + 36*a*b^3*c*d^3)/(3*a*d - 3*b*c) - 6*b^3*d^3*x
^3)/(3*a*d - 3*b*c)))*2i)/(3*a*d - 3*b*c)

________________________________________________________________________________________

sympy [B]  time = 2.47, size = 138, normalized size = 3.07 \begin {gather*} \frac {\log {\left (x^{3} + \frac {- \frac {a^{2} d^{2}}{a d - b c} + \frac {2 a b c d}{a d - b c} + a d - \frac {b^{2} c^{2}}{a d - b c} + b c}{2 b d} \right )}}{3 \left (a d - b c\right )} - \frac {\log {\left (x^{3} + \frac {\frac {a^{2} d^{2}}{a d - b c} - \frac {2 a b c d}{a d - b c} + a d + \frac {b^{2} c^{2}}{a d - b c} + b c}{2 b d} \right )}}{3 \left (a d - b c\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2/(b*x**3+a)/(d*x**3+c),x)

[Out]

log(x**3 + (-a**2*d**2/(a*d - b*c) + 2*a*b*c*d/(a*d - b*c) + a*d - b**2*c**2/(a*d - b*c) + b*c)/(2*b*d))/(3*(a
*d - b*c)) - log(x**3 + (a**2*d**2/(a*d - b*c) - 2*a*b*c*d/(a*d - b*c) + a*d + b**2*c**2/(a*d - b*c) + b*c)/(2
*b*d))/(3*(a*d - b*c))

________________________________________________________________________________________